import { $t } from "@/plugins/i18n";

export default [
  {
    path: "/system",
    meta: {
      icon: "ri:settings-3-line",
      title: $t("menus.pureSysManagement"),
      rank: 13
    },
    children: [
      {
        path: "/system/user/index",
        name: "SystemUser",
        component: () => import("@/views/system/user/index.vue"),
        meta: {
          icon: "ri:admin-line",
          title: $t("menus.pureUser"),
          roles: ["admin"]
        }
      },
      {
        path: "/system/role/index",
        name: "SystemRole",
        component: () => import("@/views/system/role/index.vue"),
        meta: {
          icon: "ri:admin-fill",
          title: $t("menus.pureRole"),
          roles: ["admin"]
        }
      },
      {
        path: "/system/menu/index",
        name: "SystemMenu",
        component: () => import("@/views/system/menu/index.vue"),
        meta: {
          icon: "ep:menu",
          title: $t("menus.pureSystemMenu"),
          roles: ["admin"]
        }
      },
      {
        path: "/system/dept/index",
        name: "SystemDept",
        component: () => import("@/views/system/dept/index.vue"),
        meta: {
          icon: "ri:git-branch-line",
          title: $t("menus.pureDept"),
          roles: ["admin"]
        }
      },
      {
        path: "/system/resource/index",
        name: "SystemResource",
        component: () => import("@/views/system/resource/index.vue"),
        meta: {
          icon: "ep:folder",
          title: "资源管理",
          roles: ["admin"]
        }
      }
    ]
  },
  {
    path: "/monitor",
    meta: {
      icon: "ep:monitor",
      title: $t("menus.pureSysMonitor"),
      rank: 14
    },
    children: [
      {
        path: "/monitor/online-user",
        component: () => import("@/views/monitor/online/index.vue"),
        name: "OnlineUser",
        meta: {
          icon: "ri:user-voice-line",
          title: $t("menus.pureOnlineUser"),
          roles: ["admin"]
        }
      },
      {
        path: "/monitor/login-logs",
        component: () => import("@/views/monitor/logs/login/index.vue"),
        name: "LoginLog",
        meta: {
          icon: "ri:window-line",
          title: $t("menus.pureLoginLog"),
          roles: ["admin"]
        }
      },
      {
        path: "/monitor/operation-logs",
        component: () => import("@/views/monitor/logs/operation/index.vue"),
        name: "OperationLog",
        meta: {
          icon: "ri:history-fill",
          title: $t("menus.pureOperationLog"),
          roles: ["admin"]
        }
      },
      {
        path: "/monitor/system-logs",
        component: () => import("@/views/monitor/logs/system/index.vue"),
        name: "SystemLog",
        meta: {
          icon: "ri:file-search-line",
          title: $t("menus.pureSystemLog"),
          roles: ["admin"]
        }
      }
    ]
  }
] satisfies Array<RouteConfigsTable>;
